var g_downurl="http://im.qq.com/qq/mo.shtml?/download/qqdl.shtml";
function getNavigatorType() {
    var Firefox=-1;
    try {
        Firefox=navigator.userAgent.indexOf("Firefox");
    } catch(e) {
        return 1;
    }
if(Firefox>-1)
{return 0;}
else
{return 1;}}
function hasQQ()
{if(getNavigatorType()==0)
{return-2;}
else
{var obj;try
{obj=new ActiveXObject("TimwpDll.TimwpCheck");}
catch(e)
{var msg="出现错误！";msg=msg+"\n请检查：\n 1.您的QQ版本是否2006正式版或以上版本；"
msg=msg+"\n 2.您的IE是否禁止ActiveX控件调用！"
msg=msg+"\n 3.您的QQ是否官方提供版本!";msg=msg+"\n\n下载最新版本的QQ：http://im.qq.com/";msg=msg+"\n\n点击确定了解更多，点击取消返回！";if(window.confirm(msg))
{window.open("http://music.qq.com/help.htm");}
else
{}
return-2;}
try
{var ver=obj.GetVersion();if(ver<3.1)
{alert("您的QQ版本不支持此功能, 请下载QQ 2005 Beta2或以上版本！");return-1;}
else if(ver>=3.3)
{try
{var qmusic=obj.IsQQMusicInstall();if(qmusic)
{return 0;}
else
{return 1;}}
catch(e)
{return 0;}}
else
{return 0;}}
catch(e)
{alert("您的QQ版本不支持此功能, 请下载QQ 2005 Beta2或以上版本！");return-1;}
return-1;}}
function loadURL(url)
{ret=hasQQ();if(ret==-1)
{window.open(g_downurl);return;}
else if(ret==0)
{window.location.href=url+"?"+randomseed();}
else if(ret==-2)
{}
else
{alert("没有找到QQMusic,请下载QQMusic并安装");window.open("http://player.music.qq.com");}}
function loadURL2(url)
{ret=hasQQ();if(ret==-1)
{window.open(g_downurl);return;}
else if(ret==0)
{window.location.href=url;}
else if(ret==-2)
{}
else
{alert("没有找到QQMusic,请下载QQMusic并安装");window.open("http://player.music.qq.com");}}
function randomseed()
{var currday=new Date();var currtime=currday.getTime();return currtime;}/* |xGv00|64f1e2f5631784d65ed2f09a420e5e63 */